package com.tangsm.api.demo.service;

import com.tangsm.api.demo.domain.Student;

public interface StudentService {
    /**
     * 新增
     * @param student
     * @return
     */
    int add(Student student);

    /**
     * 修改
     * @param student
     * @return
     */
    int update(Student student);

    /**
     * 按学号删除
     * @param sno
     * @return
     */
    int deleteBysno(String sno);

    /**
     * 按学号查询
     * @param sno
     * @return
     */
    Student queryStudentBySno(String sno);
}